Next | Prev | Up | Top | Contents | Index

Using Checkboxes

The checkboxes at the bottom of the ogldebug window allow finer control over how information is collected. This section discusses the three groups of available checkboxes:


Control-Flow Checkboxes

Control-flow checkboxes let you determine when a break occurs and which API calls you want to skip. Here's what happens when each of these boxes is checked:

Break (app error)Your application halts before an OpenGL function is called with an illegal parameter. You must then skip that call to continue.
Break (GL error)Your application halts because of an OpenGL error.
Break (API calls)Your application halts before calling any of the OpenGL functions specified using the Setup button. By default, no functions are selected. Figure 10-2 shows a Break Selection Panel with no calls selected so far.
Skip (API calls)Lets you use the Setup button to specify calls you want to skip. Just as the Break Selection Panel, the skip selection panel lets you create sets of calls for later use.

Figure 10-2 : Break Selection Panel Menu for Selecting API Calls


Trace Checkboxes

The two Trace checkboxes let you record OpenGL calls in either of two formats:

Trace (API Calls)Collects a trace file in the Clike format displayed in the call information display. For example, choose to select just vertex calls or specifically deselect calls with large output if they are not relevant to the current problem.
Call HistoryCollects the information displayed in the OpenGL display area in a file. The call history also contains some analysis information; during collection, ogldebug looks for frequent program errors or bad programming style and includes that information.


Fast Mode Checkboxes

The Fast Mode checkboxes let you determine which information ogldebug actually collects. If you don't check any of the boxes, execution of your application is quite slow. For example, when state information is being collected, ogldebug makes a glGet*() call for every piece of state information after every OpenGL call. Performance degradation is especially noticeable when you're debugging remotely (over a network).

Because of the potential speed penalty, collect only the information you need and turn on fast mode for information you don't need.

Fast Mode (no analysis)Determines whether analysis information is collected.
Fast Mode (no output)Determines whether OpenGL calls are shown in the main display area as they're invoked. Checking this box speeds up program execution but you can no longer follow the program as it's executing.
Fast Mode (no state)Determines whether ogldebug collects OpenGL state information. If it does, you can examine the current state using the State Information command in the Options menu.


Next | Prev | Up | Top | Contents | Index